import request from '@/utils/request.js'
const baseURL = 'http://123.57.167.136:3010'
export function fetchList(params) {
    return request({
        params,
        url: `${baseURL}/goodslist/list`,
        method: 'get'
    })
}


export function fecthById(params) {
    return request({
        params,
        url: `${baseURL}/goodslist/getById`,
        method: 'get'
    })
}

export function del(params) {
    return request({
        params,
        url: `${baseURL}/goodslist/del`,
        method: 'get'
    })
}

export function update(params) {
    return request({
        url: `${baseURL}/goodslist/updatelist`,
        data: {
            ...params
        },
        method: 'post'
    })
}